//
//  TBRCharterAppointCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/5/15.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TBRCharterAppointCell.h"
@interface TBRCharterAppointCell()
@property (weak, nonatomic) IBOutlet UIView *view_green;
@property (weak, nonatomic) IBOutlet UIView *view_red;
@end
@implementation TBRCharterAppointCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _view_red.layer.cornerRadius = 6.5;
    _view_green.layer.cornerRadius = 6.5;
}

- (IBAction)btnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(charterAppointCellBtnClick:)]) {
        [self.delegate charterAppointCellBtnClick:sender.tag];
    }
}
- (void)refreshUI {
    TBRRentAllMessageModel *allMessageModel = [TBRRentAllMessageModel shareAllMessageModel];
    _lbe_onCarPlace.text = [HelpObject isBlankString:allMessageModel.onPlace] ? @"正在获取上车地点..." : allMessageModel.onPlace;
    _lbe_yuYueTime.text = [HelpObject isBlankString:allMessageModel.onCarTime] ? @"预约时间" : allMessageModel.onCarTime;
    _lbe_timeDuration.text = [HelpObject isBlankString:allMessageModel.charterTimeDuration] ? @"请选择包车时长" : allMessageModel.charterTimeDuration;
}
@end
